<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/WEB-INF/struts-tags.tld"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>欢迎访问产品运营互动中心！</title>
		<meta http-equiv="Cache-Control" content="no-store" />
		<meta http-equiv="Pragma" content="no-cache" />
		<meta http-equiv="Expires" content="0" />
		<link rel="stylesheet" href="<s:url value="/css/style_new.css"/>">
		<link href="<s:url value="/images/08_ccxxzx.css"/>" rel="stylesheet"
			type="text/css" />
		<script src="<s:url value="/script/jquery_last.js"/>"
			type="text/javascript"></script>
		<script type="text/javascript"
			src="<s:url value="/script/sysOper.js"/>"></script>
		<script type="text/javascript"
			src="<s:url value="/script/selfResize.js"/>"></script>
		<script type="text/javascript">
		$(document).ready(function(){
			$("#iTR7").css({background: "#B3DEF4"});
			f_iframeResize();
		});
		function fenjie(id,type){
			if(type!='t'){
				alert("此需求单已参与过合并或分解！");
				return ;
			}else{
			
				window.location="/bpm/doDemand_toResolve.action?businessId="+id;
			}
		}
		function checkall(){
			var all=document.getElementById("chkall");
			var checkboxs = document.getElementsByName("chk");
    		for(var i=0;i<checkboxs.length;i++){
    			checkboxs[i].checked = all.checked;
    		}

		}
		function merge(){
			var checkboxs = document.getElementsByName("chk");
			var num=0;
    		for(var i=0;i<checkboxs.length;i++){
    			if(checkboxs[i].checked ==true)num++;
    		}
    		if(num<2){
    			alert("至少选择两个合并对象！");
    			return;
    		}
    		document.doDemand.action="doDemand_toMerge.action";
    		document.doDemand.submit();
		}
</script>
	</head>
	<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
	<form action="doDemand_showDemand.action" name="doDemand" id="doDemand"
															method="post" style="margin: 0">
		<table width="980" border="0" cellspacing="0" cellpadding="0"
			align="center">
			<tr>
				<td>
					<table width="100%" border="0" cellpadding="0" cellspacing="0"
						background="<s:url value="/images/new/gxzl_index_2.gif"/>">
						<tr>
							<td width="20" height="32">
								&nbsp;
							</td>
							<td width="20">
								<img src="<s:url value="/images/new/dq_dot.gif"/>" width="15"
									height="12" />
							</td>
							<td>
								当前位置：业务需求交互单-分解合并需求单
							</td>

						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td background="<s:url value="/images/home_4a.gif"/>">
					<table width="100%" border="0" cellspacing="0" cellpadding="0"
						align="center" bgcolor="#FFFFFF">
						<tr>
							<td width="20%" valign="top">
								<table width="100%" height="400" border="0" cellspacing="0"
									cellpadding="0" align="center" bgcolor="#FFFFFF">
									<tr>
										<td width="240" valign="top" class="leftbg">
											<%@ include file="/commons/include/request_pvc_left.inc.jsp"%>
										</td>
										<td valign="top" align="center">
											<br>
											<table width="98%" border="0" cellspacing="0" cellpadding="0">
												<tr>
													<td height="5">
														<table width="100%" border="0" cellspacing="0"
															cellpadding="0">
															<tr>
																<td width="5" height="5">
																	<img src="<s:url value="/images/cphdzx_tab1.gif"/>"
																		width="5" height="5" />
																</td>
																<td class="tdborderup">
																	<img src="<s:url value="/images/spacer.gif"/>"
																		width="1" height="1" />
																</td>
																<td width="5">
																	<img src="<s:url value="/images/cphdzx_tab2.gif"/>"
																		width="5" height="5" />
																</td>
															</tr>
														</table>
													</td>
												</tr>
												<tr>
													<td class="tdborderleftright">
														<TABLE width="98%" cellSpacing=1 cellPadding=0
																align="center">
															<TR height=30>
																<TD align=left width="10%">
																	<input type="button" name="search"
																		onclick="$('#doDemand').submit();" value="查 询">
																	<input type="button" name="search"
																		onclick="merge();" value="合 并">
																</TD>
															</TR>
														</table>															
														<table width="98%" border="0" cellspacing="0"
															cellpadding="7" align="center" class=tablecolor2>
															<tr>
																<td bgcolor="9AC2EB" width="5%"><input type="checkbox" id="chkall" name="chkall" onclick="checkall()"></td>
																<td bgcolor="9AC2EB" width="11%">
																	<div align="center">
																		<font color="#FFFFFF">需求单号</font>
																	</div>
																</td>
																<td bgcolor="9AC2EB" width="*">
																	<div align="center">
																		<font color="#FFFFFF">需求名称</font>
																	</div>
																</td>
																<td bgcolor="9AC2EB" width="12%">
																	<div align="center">
																		<font color="#FFFFFF">发起人</font>
																	</div>
																</td>
																
																
																<td bgcolor="9AC2EB" width="20%">
																	<div align="center">
																		<font color="#FFFFFF">开始时间</font>
																	</div>
																</td>
																
																<td bgcolor="9AC2EB" width="10%">
																	<div align="center">
																		<font color="#FFFFFF">操作</font>
																	</div>
																</td>
															</tr>
															<s:iterator value="#request.tasklist">
																<tr>
																	<td> <input type="checkbox" value="<s:property value="id" />" name="chk" id="chk<s:property value="id" />"/>
																		
																	</td>
																	<td>
																		<div align="center">
																			<s:property value="reqCode" />
																		</div>
																	</td>
																	<td>
																		<s:property value="name" />
																	</td>
																	<td>
																		<div align="center">
																			<s:property value="startPerson.name" />
																		</div>
																	</td>
																	
																	
																	<td>
																		<div align="center">
																			<s:date name="begin" format="yyyy-MM-dd HH:mm" />
																		</div>
																	</td>
																	
																	<td>
																		<div align="center">
																			<a href="/bpm/pvc/flowReq_showInfo.action?procinstId=<s:property value="procinstId" />&reqId=<s:property value="id" />"/>查看</a>
																			<a href="#" onclick="fenjie(<s:property value="id" />,'t<s:property value="opType" />');">分解</a>
																		</div>
																	</td>
																</tr>
															</s:iterator>
															<s:iterator value="prodAdvReqs">
																<tr>
																	<td>
																		<div align="center">
																			<s:property value="reqCode" />
																		</div>
																	</td>
																	<td>
																		<div align="center">
																			<s:property value="name" />
																		</div>
																	</td>
																	<td>
																		<div align="center">
																			<s:property value="startPerson.name" />
																		</div>
																	</td>
																	<td>
																		<div align="center">
																			<s:property value="curStatus" />
																		</div>
																	</td>
																	<td>
																		<div align="center">
																			<s:property value="importance" />
																		</div>
																	</td>
																	<td>
																		<div align="center">
																			<s:property value="" />
																		</div>
																	</td>
																	<td>
																		<div align="center">
																			<a
																				href="editProdAdvReq.action?prodAdvReq.id=<s:property value="id" />">查看</a>
																		</div>
																	</td>
																</tr>
															</s:iterator>
															<!---
							-->
														</table>
														<div style="text-align: center">
															${pageNaviStr }
														</div>

													</td>
												</tr>
												<tr>
													<td height="5">
														<table width="100%" border="0" cellspacing="0"
															cellpadding="0">
															<tr>
																<td width="5" height="5">
																	<img src="<s:url value="/images/cphdzx_tab3.gif"/>"
																		width="5" height="5" />
																</td>
																<td class="tdborderbottom">
																	<img src="<s:url value="/images/spacer.gif"/>"
																		width="1" height="1" />
																</td>
																<td width="5">
																	<img src="<s:url value="/images/cphdzx_tab4.gif"/>"
																		width="5" height="5" />
																</td>
															</tr>
														</table>
													</td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</form>
	</body>
</html>